<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="zh-cn">
    <head>
        <title>分类列表</title>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
        <script src="//ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.min.js"></script>
        <link rel="stylesheet" type="text/css" href="__PUBLIC__/Admin/style/layout.css"/> 
        <link rel="stylesheet" type="text/css" href="__PUBLIC__/Admin/style/content.css"/>
        <script>
            $(function(){
                $("#checkall").click(function(){
                    var checked=$(this).prop('checked');
                    $("input[name='ids[]']").prop('checked',checked);
                })
            })
        </script>
    </head>
    <body>
        <div class="cbox col9 f_l">
            <div class="header"><h3>分类管理</h3></div>
            <div class="content">
                <div class="innerbox">
                    <table class="tt">
                        <tr>
                            <th width="25px"><input type='checkbox' id='checkall'/></th>
                            <th width="70px">id</th>
                            <th>分类名</th>
                            <th width='100px'>别名</th>
                            <th width='200px'>操作</th>
                        </tr>
                        <volist name='list' id='eachlist'>
                        <tr>
                            <td><input type='checkbox' name='ids[]' value='<{$eachlist.id}>'/></td>
                            <td><span style="font-size:12px;"><{$eachlist.id}></span></td>
                            <td><if condition="$eachlist.lv gt 1"><{$eachlist.lv|str_repeat="&nbsp;",(###-1)*4}>└─</if>  <a href='<{:U('edit?id='.$eachlist['id'])}>' ><{$eachlist.name}></a></td>
                            <td><{$eachlist.alias}></td>
                            <td><a href='<{:U('add?id='.$eachlist['id'])}>'>添加子分类</a> <a href='<{:U('edit?id='.$eachlist['id'])}>'>编辑</a>  <a href='<{:U('delete?id='.$eachlist['id'])}>'>删除</a> </td>
                        </tr>
                        </volist>
                    </table>
                    <br/>
                    <p><a href="<{:U('add')}>">增加栏目</a></p>
                </div>
            </div>
        </div>
    </body>
</html>
